package com.kobe.shirodemo.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 *
 * 自定义token
 * 创建 JYQ  on  2018/11/2,14:44
 */
public class SimpleToken implements AuthenticationToken {
    private  String  username;
    private  String password;

    public SimpleToken(String username, String password) {
        this.username = username;
        this.password = password;
    }

    @Override
    public Object getPrincipal() {
        return username;
    }

    @Override
    public Object getCredentials() {
        return password;
    }
}
